<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
//print_r($this->product);exit();
$editor = &JFactory::getEditor();
JFilterOutput::objectHTMLSafe( $this->item );
JHTML::_('behavior.calendar');
JHTML::_('behavior.modal', 'a.modal');
$document	=& JFactory::getDocument();

//print_r($this->product);exit();
?>
<script language="javascript">
function submitbutton(pressbutton){

	var form = document.adminForm;
	submitform( pressbutton );
	/*if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}*/
	
			
	// do field validation
	
	
}

</script>


<form action="index.php" method="post" name="adminForm" id="adminForm">
  <div class="col100">
  <fieldset class="adminform">
  <legend><?php echo JText::_( 'User information' ); ?></legend>
  <table class="admintable" style="float:left;">
  	<tr>
      <td align="right" class="key"><label for="title_on_link"><?php echo JText::_( 'Name' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="name" id="name" size="50" maxlength="250" value="<?php echo htmlspecialchars($this->user->name);?>" />
      </td>
    </tr>
    <tr>
      <td align="right" class="key"><label for="title_on_link"><?php echo JText::_( 'Email' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="email" id="email" size="50" maxlength="250" value="<?php echo htmlspecialchars($this->user->email);?>" disabled="disabled" />
      </td>
    </tr>
     <tr>
      <td align="right" class="key"><label for="title_on_link"><?php echo JText::_( 'Company' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="company" id="company" size="50" maxlength="250" value="<?php echo htmlspecialchars($this->user->company);?>" />
      </td>
    </tr>
    
    <tr>
      <td align="right" class="key"><label for="code bar"> <?php echo JText::_( 'CVR-nr' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="cvr" id="cvr" size="50" maxlength="250" value="<?php echo $this->user->cvr;?>" />
      </td>
    </tr>
    <tr>
      <td align="right" class="key"><label for="code bar"> <?php echo JText::_( 'Address' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="address" id="address" size="50" maxlength="250" value="<?php echo $this->user->address;?>" />
      </td>
    </tr>
     <tr>
      <td align="right" class="key"><label for="code bar"> <?php echo JText::_( 'Postnr.' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="code" id="code" size="20" maxlength="250" value="<?php echo $this->user->code;?>" />
      </td>
    </tr>
     <tr>
      <td align="right" class="key"><label for="code bar"> <?php echo JText::_( 'City' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="city" id="city" size="50" maxlength="250" value="<?php echo $this->user->city;?>" />
      </td>
    </tr>
     <tr>
      <td align="right" class="key"><label for="code bar"> <?php echo JText::_( 'Phone' ); ?>: </label>
      </td>
      <td><input class="text_area" type="text" name="phone" id="phone" size="50" maxlength="250" value="<?php echo $this->user->phone;?>" />
      </td>
    </tr>
          
  </table>
  </fieldset>
  </div>
  <div class="clr"></div>
  <input type="hidden" name="option" value="com_ecommerce" />
  <input type="hidden" name="id" value="<?php echo $this->user->id; ?>" />
  <input type="hidden" name="published" value="1" />
  <input type="hidden" name="task" id="task" value="" />
  <input type="hidden" name="controller" value="users" />
</form>
